import request from '@/utils/request';
const baseURL = import.meta.env.VITE_API_URL;

export function postAction(url: string, data: any) {
  return request({
    url,
    method: 'post',
    data
  })
}
export const uploadAction = (url: string, data: any) => {
  return request({
    url,
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
